package ltd.newbee.mall.enums;

import lombok.Getter;

/**
 * @ClassName: resultEnum
 * @Description: 结果枚举类
 * @Author: bwh
 * @Date: 2022/9/2 15:43
 * @Version 1.0
 */
@Getter
public enum ResultEnum
{
    Staff_EXSIT(100, "该员工已存在"),
    Staff_NOT_EXSIT(101,"该员工不存在"),
    Staff_NOT_MANAGER(102,"您不是经理，没有修改权限"),
    PRODUCT_NOT_EXIST(103,"该商品不存在"),
    PRODUCT_EXIST(104,"该商品已存在"),
    PRODUCT_STOCK_ERROR(105,"商品库存不正确"),
    SUPPLIER_NOT_EXIST(106,"供应商不存在"),
    CUSTOMER_EXIST(107,"顾客已存在"),
    CUSTOMER_NOT_EXIST(108,"顾客不存在"),
    ORDER_NOT_EXIST(109,"订单不存在"),
    SELLDETAIL_NOT_EXIST(110,"销售订单明细不存在"),
    STAFF_STATE_WRONG(111,"员工状态不正确"),
    PRODUCT_STATUS_ERROR(112,"商品状态不正确"),
    ORDER_CREATE_ERROR(113,"创建订单错误"),
    CART_EMPTY(114,"所购商品为空");

    private final Integer code;

    private final String message;

    ResultEnum(Integer code, String message)
    {
        this.code = code;
        this.message = message;
    }
}
